import math


class Point:
    def __init__(self, x: float or int = 0, y: float or int = 0):
        self.__x, self.__y = x, y

    def get_x_coordinate(self):
        return self.__x

    def get_y_coordinate(self):
        return self.__y

    def distance(self, p2):
        d = math.sqrt(pow(self.get_x_coordinate() - p2.get_x_coordinate(), 2) +
                      pow(self.get_y_coordinate() - p2.get_y_coordinate(), 2))

        return d

    def isNearBy(self, p2):
        if self.distance(p2) < 5:
            return True
        else:
            return False


x1, y1, x2, y2 = eval(input())
p1 = Point(x1, y1)
p2 = Point(x2, y2)

print('The distance between the two points is', format(p2.distance(p1), '.2f'))
if not p1.isNearBy(p2):
    print('The two points are not near each other ')
else:
    print('The two points are near each other ')